home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
filetype.z
/
filetype
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111)))) PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111))))
NNNNAAAAMMMMEEEE
filetype, fileopen, filealtopen, wstype - determine filetype of specified
file or files
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ffffiiiilllleeeettttyyyyppppeeee [----vvvv] [ ----dddd _f_i_l_e_t_y_p_e_D_a_t_a_B_a_s_e_P_a_t_h ] [----oooo | ----aaaa ] file...
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_f_i_l_e_t_y_p_e is a utility used to determine the _I_R_I_X _I_n_t_e_r_a_c_t_i_v_e _D_e_s_k_t_o_p
(_I_I_D(_1_G)) file type of a file or set of files. _f_i_l_e_t_y_p_e uses the IRIX
Interactive Desktop file typing database to look up file typing rules and
apply them to the files listed, then prints the file type for each file
whose type was requested. The conversion rules are located in compiled
._o_t_r files in /_u_s_r/_l_i_b/_f_i_l_e_t_y_p_e. The older _f_t_r(_1) database format, ._c_t_r
files are not supported anymore. The source ._f_t_r files can be found in
the _l_o_c_a_l, _i_n_s_t_a_l_l, _s_y_s_t_e_m, and _d_e_f_a_u_l_t subdirectories under
/_u_s_r/_l_i_b/_f_i_l_e_t_y_p_e.
If no file type can be determined for a particular file, the string
"Unknown" is returned. If a file type can be determined, filetype will
return a string representing the name of the file and its IRIX
Interactive Desktop type name.
UUUUSSSSAAAAGGGGEEEE
The ----vvvv option should be used when detailed file typing information is
desired. This option prints a copy of the full file-type rule when a
file is successfully typed.
----dddd _f_i_l_e_t_y_p_e_D_a_t_a_B_a_s_e_P_a_t_h is an alternate path to the compiled file-typing
rules. The default path is /_u_s_r/_l_i_b/_f_i_l_e_t_y_p_e/_d_e_s_k_t_o_p._o_t_r.
The ----oooo and ----aaaa options execute the FTR "Open" and "Alt-Open" rules for the
selected files. The first filename on the command line is put into the
$LEADER variable, the rest into $REST. The rest of the IRIX Interactive
Desktop environment variables are set appropriately accordingly. (See
mmmmaaaannnn ffffttttrrrr for more information on those variables.) Invoking _f_i_l_e_o_p_e_n is
equivalent to passing the ----oooo switch to _f_i_l_e_t_y_p_e. Invoking _f_i_l_e_a_l_t_o_p_e_n is
equivalent to passing the ----aaaa switch to _f_i_l_e_t_y_p_e.
The ----vvvv option should be used when detailed file typing information is
desired. This option prints a copy of the full file-type rule when a
file is successfully typed.
_f_i_l_e(_s) is one or more file names, separated by spaces.
A typical call from the command line and its resulting output might look
like the following:
$ filetype /etc/passwd /unix /dev/kmem
/etc/passwd AsciiTextFile
PPPPaaaaggggeeee 1111
FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111)))) PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111))))
/unix GenericExecutable
/dev/kmem CharSpecial
TTTTYYYYPPPPEEEE OOOORRRRDDDDEEEERRRRIIIINNNNGGGG
The ordering of files on _f_i_l_e_t_y_p_e'_s command line determines the ordering
of files and types reported.
FFFFIIIILLLLEEEESSSS
/usr/lib/filetype/local/*.ftr
/usr/lib/filetype/install/*.ftr
/usr/lib/filetype/system/*.ftr
/usr/lib/filetype/default/*.ftr
/usr/lib/filetype/desktop.otr
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_I_R_I_S _I_m_p_r_e_s_s_a_r_i_o _P_r_o_g_r_a_m_m_i_n_g _G_u_i_d_e , _I_R_I_X _I_n_t_e_r_a_c_t_i_v_e _D_e_s_k_t_o_p _I_n_t_e_g_r_a_t_i_o_n
_G_u_i_d_e , _r_o_u_t_e_p_r_i_n_t(_1), _f_t_r(_1).
PPPPaaaaggggeeee 2222